package com.spc.car.data.service.sys.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.spc.car.data.entity.sys.SysUserPost;
import com.spc.car.data.mapper.sys.SysUserPostMapper;
import com.spc.car.data.service.sys.SysUserPostService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户和角色关联表 服务实现类
 * </p>
 *
 * @author 
 * @since 2020-03-06
 */
@Service
public class SysUserPostServiceImpl extends ServiceImpl<SysUserPostMapper, SysUserPost> implements SysUserPostService {

    @Override
    public boolean deleteByUserId(Long userId) {
        return remove(new QueryWrapper<SysUserPost>().eq("user_id", userId));
    }
}
